package com.baizhi.feign.rollback;

import com.baizhi.feign.FeignCity;
import com.baizhi.po.CityPO;
import org.springframework.stereotype.Component;

@Component
public class CityRollBack implements FeignCity {
    @Override
    public CityPO queryById(Long id) {
        CityPO cityPO = new CityPO();
        cityPO.setId(id);
        cityPO.setName("服务暂时不可用");
        return cityPO;
    }
}
